import request from '@/utils/request'
export function fetchEvidence(query) {
    return request({
     // url: '/vue-element-admin/article/list',
     // ul:'http://192.168.110.192:5000/api/private/v1/cases',
      url:'/evidence',
      method: 'get',
      params: query
    })
  }
  export function createmark(data) {
    return request({
     // url: '/vue-element-admin/article/list',
     // ul:'http://192.168.110.192:5000/api/private/v1/cases',
      url:'/evidence/bookmarks',
      method: 'post',
      data
    })
  }
  
export function delectmark(evidence_id) {
  return request({
    url: '/evidence/bookmarks',
    method: 'delete',
    params: { evidence_id }
  })
}
  export function fetchmark(data) {
    return request({
     // url: '/vue-element-admin/article/list',
     // ul:'http://192.168.110.192:5000/api/private/v1/cases',
      url:'/evidence/bookmarks?case_id='+data,
      method: 'get',
      data
    })
  }
  export function fetchmarkNull(data) {
    return request({
     // url: '/vue-element-admin/article/list',
     // ul:'http://192.168.110.192:5000/api/private/v1/cases',
      url:'/evidence/bookmarks',
      method: 'get',
      data
    })
  }
  export function createEvidence(data) {
    return request({
      url: '/evidence',
      method: 'post',
      data
    })
  }
  export function updateevidence(data) {
    return request({
      url: '/evidence?id='+data,
      method: 'patch',
      data
    })
  }
  export function updateArticle(data) {
    return request({
      url: '/cases',
      method: 'patch',
      data
    })
  }